package com.eimf.saf.common.commons.i18n;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.eimf.saf.common.commons.annotation.NoDatabaseFieldAnnotation;

/**
 * @author eden
 * @date 2013-11-13 下午5:08:35
 * @Description: TODO(这里用一句话描述这个类的作用)
 */
public abstract class Ii18n implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 存放修改之前的值。key 为字段名，值为国际化资源ID */
    @NoDatabaseFieldAnnotation
    private final Map<String, String> i18n = new HashMap<String, String>();

    public Map<String, String> getI18n()
    {
        return i18n;
    }

    public void addI18n(final String fieldName, final String oldVal)
    {
        i18n.put(fieldName, oldVal);
    }

    @Override
    public String toString()
    {
        return "Ii18n [i18n=" + i18n + "]";
    }
}
